﻿using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;
using Planisoft.Entities;


namespace Planisoft.DAO.Mapping
{
    public class IngresosPdtSunatMap : EntityTypeConfiguration<IngresosPdtSunat>
    {
        public IngresosPdtSunatMap() 
        {
            // Primary Key
            this.HasKey(t => t.IdIngresoSunat);

            // Properties
            this.Property(t => t.CodIngresoSunat)
                .HasMaxLength(10);

            // Table & Column Mappings
            this.ToTable("IngresosPdtSunat");
            this.Property(t => t.IdIngresoSunat).HasColumnName("IdIngresoSunat");
            this.Property(t => t.CodIngresoSunat).HasColumnName("CodIngresoSunat");
            this.Property(t => t.DescIngresoSunat).HasColumnName("DescIngresoSunat");
        }
    }
}
